home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / compiler / Prim_c.sml < prev    next >
Encoding:
Text File  |  1997-08-18  |  2.9 KB  |  180 lines  |  [TEXT/Moml]

  1. val primitives_table = #[
  2.   "compare",
  3.   "equal",
  4.   "notequal",
  5.   "lessthan",
  6.   "lessequal",
  7.   "greaterthan",
  8.   "greaterequal",
  9.   "extern_val",
  10.   "extern_compact_val",
  11.   "format_float",
  12.   "float_of_string",
  13.   "exp_float",
  14.   "log_float",
  15.   "sqrt_float",
  16.   "power_float",
  17.   "sin_float",
  18.   "cos_float",
  19.   "tan_float",
  20.   "asin_float",
  21.   "acos_float",
  22.   "atan_float",
  23.   "atan2_float",
  24.   "gc_stat",
  25.   "gc_get",
  26.   "gc_set",
  27.   "gc_minor",
  28.   "gc_major",
  29.   "gc_full_major",
  30.   "hash_univ_param",
  31.   "intern_val",
  32.   "int_of_string",
  33.   "format_int",
  34.   "open_descriptor",
  35.   "channel_descriptor",
  36.   "channel_size",
  37.   "flush",
  38.   "output_char",
  39.   "output_int",
  40.   "output",
  41.   "seek_out",
  42.   "pos_out",
  43.   "close_out",
  44.   "input_char",
  45.   "input_int",
  46.   "input",
  47.   "seek_in",
  48.   "pos_in",
  49.   "close_in",
  50.   "input_scan_line",
  51.   "get_next_char",
  52.   "start_interp",
  53.   "realloc_global",
  54.   "static_alloc",
  55.   "static_free",
  56.   "static_resize",
  57.   "obj_is_block",
  58.   "obj_block",
  59.   "available_primitives",
  60.   "parse_engine",
  61.   "create_string",
  62.   "compare_strings",
  63.   "blit_string",
  64.   "fill_string",
  65.   "is_printable",
  66.   "sys_exit",
  67.   "sys_open",
  68.   "sys_close",
  69.   "sys_remove",
  70.   "sys_rename",
  71.   "sys_chdir",
  72.   "sys_getenv",
  73.   "sys_system_command",
  74.   "sys_catch_break",
  75.  
  76.   "sml_equal",
  77.   "sml_not_equal",
  78.   "sml_system",
  79.   "sml_abs_int",
  80.   "sml_floor",
  81.   "sml_ceil",
  82.   "sml_round",
  83.   "sml_trunc",
  84.   "sml_abs_real",
  85.   "sml_sqrt",
  86.   "sml_sin",
  87.   "sml_cos",
  88.   "sml_exp",
  89.   "sml_ln",
  90.   "sml_int_of_string",
  91.   "sml_concat",
  92.   "sml_chr",
  93.   "sml_ord",
  94.   "sml_float_of_string",
  95.   "sml_string_of_int",
  96.   "sml_string_of_float",
  97.   "sml_makestring_of_char",
  98.   "sml_makestring_of_string",
  99.   "sml_getrealtime",
  100.   "sml_getrutime",
  101.   "sml_errno",
  102.   "sml_getdir",
  103.   "sml_mkdir",
  104.   "sml_rmdir",
  105.   "sml_opendir",
  106.   "sml_rewinddir",
  107.   "sml_readdir",
  108.   "sml_closedir",
  109.   "sml_isdir",
  110.   "sml_modtime",
  111.   "sml_settime",
  112.   "sml_access",
  113.   "sml_mktemp",
  114.   "sml_errormsg",
  115.   "sml_asin",
  116.   "sml_acos",
  117.   "sml_atan2",
  118.   "sml_pow",
  119.   "sml_localtime",
  120.   "sml_gmtime",
  121.   "sml_mktime",
  122.   "sml_asctime",
  123.   "sml_strftime",
  124.   "sml_general_string_of_float",
  125.   "sml_filesize",
  126.   "sml_int_of_hex",
  127.   "sml_word_of_hex",
  128.   "sml_word_of_dec",
  129.   "sml_hexstring_of_word",
  130.   "sml_sinh",
  131.   "sml_cosh",
  132.   "sml_tanh",
  133.   "sml_realpath",
  134.   "sml_uname",
  135.   "sml_islink",
  136.   "sml_readlink",
  137.   "sml_devinode",
  138.  
  139.   "md5sum",
  140.  
  141.   "get_timer",
  142.   "beg_timer",
  143.   "end_timer",
  144.   "clr_timer",
  145.  
  146.   "mac_OSACompile",
  147.   "mac_OSAExecute",
  148.   "mac_OSADispose",
  149.   "mac_OSADisplay",
  150.   "mac_OSAScriptError",
  151.  
  152.   "dump_image",
  153.   "set_line_width",
  154.   "draw_arc",
  155.   "create_image",
  156.   "draw_char",
  157.   "text_size",
  158.   "wait_event",
  159.   "fill_poly",
  160.   "make_image",
  161.   "fill_rect",
  162.   "plot",
  163.   "draw_image",
  164.   "set_color",
  165.   "sound",
  166.   "lineto",
  167.   "moveto",
  168.   "clear_graph",
  169.   "blit_image",
  170.   "draw_string",
  171.   "current_point",
  172.   "size_x",
  173.   "size_y",
  174.   "point_color",
  175.   "fill_arc",
  176.   "close_graph",
  177.   "set_font",
  178.   "open_graph",
  179.   "set_text_size"];
  180.